<?php
/**
 * Define list action allow
 * @author vunn
 * @date 16/10/2012
 */
class PermissionConfig{
    public static $unloginConfig =  array(
            'users'     =>      array('login','logout','loginFontEnd','logout_font_end'),
            'realtime'  =>      array('*'),
            'calluser'  =>      array('*'),
    );
    
    public static $actionAllowConfig =  array(
            1       =>  array( //ADMIN
                            'allow'     =>  '
                                            controllers/Users/userManager,
                                            controllers/CommentManager/index,
            								controllers/Transactions/index,
            								controllers/MoneyManager/index,
            								controllers/Users/info
                                            ',
                            'deny'      =>  ''
                    ),
            0       =>  array(//User
                            'allow'     =>  '
                                            controllers/UsersNew/index,
            								controllers/Consultants/index,
            								controllers/Consultants/category,
            								controllers/Home/index,
            								controllers/Home/runDataAjax,
            								controllers/Home/buildDatZend,
            								controllers/Home/zendHtml,
            								controllers/Home/getDefault,
            								controllers/Home/newData,
            								controllers/Home/totalSave,
            								controllers/Home/getPayFree,
            								controllers/Home/getPayHr,
            								controllers/Home/getCategory,
                                            controllers/Online/index,
            								controllers/Online/runDataAjax,
            								controllers/Online/buildDatZend,
            								controllers/Online/zendHtml,
            								controllers/Online/getDefault,
            								controllers/Online/newData,
            								controllers/Online/totalSave,
            								controllers/Online/getPayFree,
            								controllers/Online/getPayHr,
            								controllers/Online/getCategory
                                            ',
                            'deny'      =>  '
                                            '
                    ),
    		2       =>  array(//User
    				'allow'     =>  '
                                            controllers/UsersNew/index,
            								controllers/Consultants/index,
            								controllers/Consultants/category,
    										controllers/Consultants/UploadBackground,
    										controllers/Consultants/ajaxUpdatename,
                                            controllers/Home/index,
            								controllers/Home/runDataAjax,
            								controllers/Home/buildDatZend,
            								controllers/Home/zendHtml,
            								controllers/Home/getDefault,
            								controllers/Home/newData,
            								controllers/Home/totalSave,
            								controllers/Home/getPayFree,
            								controllers/Home/getPayHr,
            								controllers/Home/getCategory,
                                            controllers/Online/index,
            								controllers/Online/runDataAjax,
            								controllers/Online/buildDatZend,
            								controllers/Online/zendHtml,
            								controllers/Online/getDefault,
            								controllers/Online/newData,
            								controllers/Online/totalSave,
            								controllers/Online/getPayFree,
            								controllers/Online/getPayHr,
            								controllers/Online/getCategory,
    										controllers/Users/testLogin,
    										controllers/Users/testRegister,
    										controllers/CallTransactions/index,
    										controllers/BoxTransactions/index,
    										controllers/Home/category,
    										controllers/Consultants/vote,
    										controllers/Consultants/buildDatZend,
    										controllers/Acount/index,
                                            ',
    				'deny'      =>  '
                                            '
    		)
    );
}